@keyframes ngdialog-flyin {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ngdialog-flyout {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}

.ngdialog.ngdialog-theme-default {
    padding: 40px;
    position: fixed;
}

.ngdialog.ngdialog-theme-default.ngdialog-closing {
    .ngdialog-content {
        animation: ngdialog-flyout $speed;
    }
}

.ngdialog.ngdialog-theme-default {
    .ngdialog-content {
        animation: ngdialog-flyin $speed;
        background: rgba(0, 0, 0, 0);
        color: $white;
        font-family: 'Helvetica',sans-serif;
        font-size: 1.1em;
        line-height: 1.5em;
        margin: 0 auto;
        max-width: 100%;
        padding: 1em;
        position: relative;
        height: 100%;
    }

    .ngdialog-close {
        border-radius: 5px;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 0;

        &:before {
            background: transparent;
            border-radius: 3px;
            color: #bbb;
            content: '\00D7';
            font-size: 26px;
            font-weight: 400;
            height: 30px;
            line-height: 26px;
            position: absolute;
            right: 3px;
            text-align: center;
            top: 3px;
            width: 30px;
        }

        &:hover {
            &:before {
                color: #777;
            }
        }

        &:active {
            &:before {
                color: #777;
            }
        }
    }

    .ngdialog-message {
        margin-bottom: .5em;
    }

    .ngdialog-input {
        margin-bottom: 1em;

        textarea, input[type="text"], input[type="password"], input[type="email"], input[type="url"] {
            background: #fff;
            border: 0;
            border-radius: 3px;
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
            margin: 0 0 .25em;
            min-height: 2.5em;
            padding: .25em .67em;
            width: 100%;

            &:focus {
                box-shadow: inset 0 0 0 2px #8dbdf1;
                outline: none;
            }
        }
    }

    .ngdialog-buttons {
        *zoom: 1;

        &:after {
            content: '';
            display: table;
            clear: both;
        }
    }

    .ngdialog-button {
        border: 0;
        border-radius: 3px;
        cursor: pointer;
        float: right;
        font-family: inherit;
        font-size: .8em;
        letter-spacing: .1em;
        line-height: 1em;
        margin: 0 0 0 .5em;
        padding: .75em 2em;
        text-transform: uppercase;

        &:focus {
            animation: ngdialog-pulse 1.1s infinite;
            outline: none;
        }
    }

    .ngdialog-button.ngdialog-button-primary {
        background: #3288e6;
        color: #fff;
    }

    .ngdialog-button.ngdialog-button-secondary {
        background: #e0e0e0;
        color: #777;
    }
}

@media (max-width: 568px) {
    .ngdialog.ngdialog-theme-default .ngdialog-button:focus {
        animation: none;
    }
}